<extend name='Public/index'/>
<block name='content'>
    <button type="button" class="button tiny" data-reveal-id="add">添加考试项目</button>
    <div id="add" class="reveal-modal" data-reveal>
        <form action="<{:U('doAddExamItem')}>" method="post">
            <table class='middle-12 column'>
                <tr>
                    <th>考试名称</th>
                    <th>考试类型</th>
                    <th>操作</th>
                </tr>
                <tr>
                    <td>
                        <input type="text" name="exam_name">
                    </td>
                    <td>
                        <select name="up" id="">
                            <!--<option>请选择</option>-->
                            <option value="0">添加考试类型</option>
                            <volist name="option" id="vo">
                                <option value="<{$vo.id}>"><{$vo.exam_name}></option>
                            </volist>
                        </select>
                    </td>
                    <td>
                        <button class='tiny'>添加</button>
                    </td>
                </tr>
            </table>
        </form>
        <a class="close-reveal-modal">&times;</a>
    </div>

    <notempty name='res'>
        <table>
            <tr>
                <th>考试类型</th>
                <th>考试名称</th>
            </tr>
            <volist name="res" id="vo">
                <tr>
                    <td><{$vo.e1}></td>
                    <td><{$vo.e2}></td>
                </tr>
            </volist>
        </table>
    </notempty>
<script>
$(document).ready(function() {
    $(document).foundation();
})
</script>
</block>